home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / ccmd / cmpara.cnf < prev    next >
Encoding:
Text File  |  1990-12-18  |  1.2 KB  |  56 lines

  1. _
  2. _ Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3. _ the City of New York.  Permission is granted to any individual or
  4. _ institution to use, copy, or redistribute this software so long as it
  5. _ is not sold for profit, provided this copyright notice is retained.
  6. _
  7. _ Author: Howie Kaye
  8.  
  9. /*
  10.  * para_actions:
  11.  * a structure to hold an action character, and an associated function
  12.  * to call for that action
  13.  */
  14.  
  15. typedef struct {
  16.   char actionchar;
  17.   char * (* actionfunc)();
  18. } para_actions;
  19.  
  20. /*
  21.  * para_data:
  22.  * input data to paragraph parser.
  23.  * holds text to install at the beginning of the buffer, and
  24.  * a NULL terminated vector of para_actions.
  25.  */
  26.  
  27. typedef struct {
  28.   char *buf;
  29.   para_actions *actions;
  30. } para_data;
  31.  
  32. fnerror(NM,`Out of memory')
  33.  
  34. /*
  35.  * the PARA_DEF flag is used to specify that the default actions should be
  36.  * set, and then the user specified actions should be installed.
  37.  * Used to make additions to the default actions
  38.  */
  39. fnflag(DEF)
  40.  
  41. #ifndef DEF_EDITOR
  42. #if unix
  43. #define DEF_EDITOR "emacs"
  44. #endif
  45.  
  46. #ifdef MSDOS
  47. #ifdef RAINBOW
  48. #define DEF_EDITOR "mince"
  49. #else
  50. #define DEF_EDITOR "epsilon"
  51. #endif /*  RAINBOW */
  52. #endif /*  MSDOS */
  53. #endif
  54. pvtype(char *);
  55.  
  56.